package lab02.test37;

public class Undergraduate extends Student {
    public Undergraduate(){}

    public Undergraduate(String name,String sort,double Chinese,double chemical,double math){
        super(name,sort,Chinese,chemical,math);
    }
    public void undergrade(){
        double a =super.average(math,chemical,Chinese);
        if (a>=60){
            System.out.println("能拿到学位证书");
        }else{
            System.out.println("不能拿到学位证书");
        }
    }
}
